<script setup lang="ts">
import {loginByJson} from "@/service/modules/user"

const login = async ()=>{
  let res = await loginByJson({
    password:'abc123456',
    username:'admin',
    key:'53y82942932',
    captcha:'fhkdshf',
  });
  console.log(  res );
}

</script>

<template>
  <div>
    <h3>axios请求封装</h3>
    <button @click="login">登录</button>
  </div>

</template>

<style scoped lang="scss"></style>
